package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the actionhistory database table.
 * 
 */
@Entity
@Table(name="actionhistory")
@NamedQuery(name="Actionhistory.findAll", query="SELECT a FROM Actionhistory a")
public class Actionhistory implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String actionid;

	@Column(name="action_escription")
	private String actionEscription;

	private String maintenancelist;

	@Temporal(TemporalType.DATE)
	private Date riqi;

	private int shanchu;

	private String type;

	//bi-directional many-to-one association to Contact
	@ManyToOne
	@JoinColumn(name="contacts")
	private Contact contact;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="customer")
	private Customer customerBean;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="personcharge")
	private Staff staff;

	public Actionhistory() {
	}

	public String getActionid() {
		return this.actionid;
	}

	public void setActionid(String actionid) {
		this.actionid = actionid;
	}

	public String getActionEscription() {
		return this.actionEscription;
	}

	public void setActionEscription(String actionEscription) {
		this.actionEscription = actionEscription;
	}

	public String getMaintenancelist() {
		return this.maintenancelist;
	}

	public void setMaintenancelist(String maintenancelist) {
		this.maintenancelist = maintenancelist;
	}

	public Date getRiqi() {
		return this.riqi;
	}

	public void setRiqi(Date riqi) {
		this.riqi = riqi;
	}

	public int getShanchu() {
		return this.shanchu;
	}

	public void setShanchu(int shanchu) {
		this.shanchu = shanchu;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Contact getContact() {
		return this.contact;
	}

	public void setContact(Contact contact) {
		this.contact = contact;
	}

	public Customer getCustomerBean() {
		return this.customerBean;
	}

	public void setCustomerBean(Customer customerBean) {
		this.customerBean = customerBean;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}